import { createRouter, createWebHashHistory } from 'vue-router'
import ViewNotes from '@/views/ViewNotes.vue'
import ViewStates from '@/views/ViewStates.vue'
import ViewEditNotes from '@/views/ViewEditNotes.vue'

const routes = [
  {
    path: '/',
    name: 'notes',
    component: ViewNotes
  },
  {
    path: '/edit/:id',
    name: 'edit',
    component: ViewEditNotes
  },
  {
    path: '/states',
    name: '/states',
    component: ViewStates     
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router;